home *** CD-ROM | disk | FTP | other *** search
/ CD Ware Multimedia 1995 May / cd Ware (Juegos) Epimundo.iso / DOS / C / TINY_WP.ZIP / KEYHIT.ASM < prev    next >
Encoding:
Assembly Source File  |  1988-10-31  |  330 b   |  20 lines

  1. ; ------------- keyhit.asm ---------------
  2. ;
  3. ; Use this in MSC C programs in place of kbhit
  4. ; This function avoids Ctrl-Break aborts
  5. ;
  6. _text    segment para public 'code'
  7. assume    cs:_text
  8. public    _keyhit
  9. _keyhit    proc    near
  10.     mov    ah,1
  11.     int    16h
  12.     mov    ax,1
  13.     jnz    keyret
  14.     mov    ax,0
  15. keyret:    ret
  16. _keyhit    endp
  17. _text    ends
  18.     end
  19.  
  20.